<template>
  <xhh-select v-model="value" :api="api" @change="handleChange" />
</template>
<script lang="ts" setup>
import { ref } from 'vue'
const value = ref('')
const api = {
  url: '/thc-platform-core/tsStaff/pageList/',
  params: {
    dataFlag: '0',
    currentPage: 1,
    page: 1,
    pagesize: 20,
    pageSize: 20,
    offset: 0,
  },
  config: {
    resultFn(res) {
      return res.data.pageList
    },
  },
}
function handleChange(...args) {
  console.log('handleChange', ...args)
}
</script>
